import java.util.Scanner;

/**
 * Created with IDEA
 * author:ju bai
 * Date:2021/5/22
 * Time:0:00
 **/
public class Main2 {
    /**
     * 每日一题-因子个数
     *
     * @param args
     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int n = sc.nextInt();
            int count = 0;
            for (int i = 2; i < Math.sqrt(n); i++) {//取平方根
                if (n % i == 0) {//表示n被i整除
                    while (n % i == 0) {
                        n = n / i;
                    }
                    count++;
                }
            }
            if (n != 1) {
                count++;//说明为素数，其本身也是一个因数
            }
            System.out.println(count);
        }
    }
}
